//
//  YCUserTool.m
//  YCVillageDoctor
//
//  Created by Mac on 2017/6/8.
//  Copyright © 2017年 zhangxiaoliang. All rights reserved.
//

#import "YCUserTool.h"



@implementation YCUserTool


static YCUserTool* instance = nil;

+(instancetype)sharedTools{
   
    @synchronized (self) {
        if(instance == nil){
            instance = [[YCUserTool alloc] init];
        }
    }
    return instance;
}

+(id)allocWithZone:(struct _NSZone *)zone{
    if(instance == nil){
        @synchronized (self) {
            if(instance == nil){
                instance = [super allocWithZone:zone];
            }
        }
    }
    return instance;
}

@end
